public class first {
    static class Book{
        String color;
        String name;
        void read()
        {
            System.out.println("你拿了一本书，它是"+color+"的"+name);
        }
    }

        public static void main(String[] args){
            Book book1 = new Book();
            Book book2 = new Book();
            Book book3 = new Book();
            book1.name="三体I";
            book1.color="橙色";
            book2.name="三体II";
            book2.color="紫色";
            book3.name="三体III";
            book3.color="红色";
            book1.read();
            book2.read();
            book3.read();
        }
}
